package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 商品类
 */
@TableName("t_product")
public class ProductBean {
    /**
     * 编号
     */
    @TableId(value = "pk_product")
    private String id;
    /**
     * 商品名
     */
    @TableField(value = "p_name")
    private String name;
    /**
     * 品牌
     */
    @TableField(value = "p_brand")
    private String brand;
    /**
     * 类型
     */
    @TableField(value = "p_type")
    private String type;
    /**
     * 数量
     */
    @TableField(value = "p_num")
    private Integer num;
    /**
     * 图片路径
     */
    @TableField(value = "p_imgPath")
    private String imgPath;
    /**
     * 采购价
     */
    @TableField(value = "p_buyPrice")
    private Integer buyPrice;
    /**
     * 销售价
     */
    @TableField(value = "p_sellPrice")
    private Integer sellPrice;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Integer buyPrice) {
        this.buyPrice = buyPrice;
    }

    public Integer getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Integer sellPrice) {
        this.sellPrice = sellPrice;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", type='" + type + '\'' +
                ", num=" + num +
                ", imgPath='" + imgPath + '\'' +
                ", buyPrice=" + buyPrice +
                ", sellPrice=" + sellPrice +
                '}'+"\n";
    }

}
